package com.dragon.modules.yuegou.client.wechat_mini.model;

import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.fasterxml.jackson.annotation.JsonInclude;

import java.io.Serializable;
import java.math.BigDecimal;

/**
 * 商品详情
 * 
 * @author pengxin
 *
 */
@SuppressWarnings("serial")
@JsonInclude(JsonInclude.Include.NON_NULL)
@JsonIgnoreProperties(ignoreUnknown = true)
public class GetApprovedGood implements Serializable {

	/**
	 * 商品ID
	 */
	private Integer goodsId;

	/**
	 * 商品名称
	 */
	private String name;

	/**
	 * 商品图片url
	 */
	private String coverImgUrl;

	/**
	 * 商品详情页的小程序路径
	 */
	private String url;

	/**
	 * 1:一口价，此时读price字段; 2:价格区间，此时price字段为左边界，price2字段为右边界;
	 * 3:折扣价，此时price字段为原价，price2字段为现价；
	 */
	private Integer priceType;

	/**
	 * 价格左区间，单位“元”
	 */
	private BigDecimal price;

	/**
	 * 价格右区间，单位“元”
	 */
	private BigDecimal price2;

	/**
	 * 1、2：表示是为 API 添加商品，否则是直播控制台添加的商品
	 */
	private Integer thirdPartyTag;

	public Integer getGoodsId() {
		return goodsId;
	}

	public void setGoodsId(Integer goodsId) {
		this.goodsId = goodsId;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getCoverImgUrl() {
		return coverImgUrl;
	}

	public void setCoverImgUrl(String coverImgUrl) {
		this.coverImgUrl = coverImgUrl;
	}

	public String getUrl() {
		return url;
	}

	public void setUrl(String url) {
		this.url = url;
	}

	public Integer getPriceType() {
		return priceType;
	}

	public void setPriceType(Integer priceType) {
		this.priceType = priceType;
	}

	public BigDecimal getPrice() {
		return price;
	}

	public void setPrice(BigDecimal price) {
		this.price = price;
	}

	public BigDecimal getPrice2() {
		return price2;
	}

	public void setPrice2(BigDecimal price2) {
		this.price2 = price2;
	}

	public Integer getThirdPartyTag() {
		return thirdPartyTag;
	}

	public void setThirdPartyTag(Integer thirdPartyTag) {
		this.thirdPartyTag = thirdPartyTag;
	}

}
